export interface Attr{
    TASK_NODE_NO:string,
    TASK_NODE_NAME:string,
    PROC_DEF_KEY:string,
    TASK_RUN_TYPE:number,
    TASK_RUN_DATA:any,
    TASK_RUN_AGAIN_REC_PRO:number,
    TASK_RUN_DATA_MOD_ALLOW:number,
    TASK_RUN_DATA_IS_EMPTY:number,
    TASK_RUN_DATA_SELECT_USER:string,
    TASK_RUN_MODE:number,
    TASK_RUN_JUMP_TYPE:number,
    TASK_NODE_FORM:string,
    TASK_NODE_OPERATE:string,
    MODIFIABLE_NODES:any,
    MUST_MODIFIABLE_NODES:any,
    TASK_TYPE:string,
    TASK_SUB_OPERATE:string,
    SUB_TASK_RUN:number,
    TASK_PTC_DATA:any,
    TASK_CTP_DATA:any,
    PARENT_TASK_RUN:number,
    PARENT_TASK_RUN_COND:string,
    TASK_NODE_FORM_DATA_POWER:any,
    TASK_NODE_TIMEOUT_SETTING:string,
    SERVICE_TASK_RUN_TYPE:string,
    SERVICE_TASK_RUN_METHOD:string,
    operActionData:any,
    listeners:any
}
//自定义模版初始化起草人审批动作数据
export function createTaskData(): Attr  {
    const newTaskAttr={
        TASK_NODE_NO: "",
        TASK_NODE_NAME: "",
        PROC_DEF_KEY: "",
        TASK_RUN_TYPE:0,
        TASK_RUN_DATA: "",
        TASK_RUN_AGAIN_REC_PRO:0,
        TASK_RUN_DATA_MOD_ALLOW:0,
        TASK_RUN_DATA_IS_EMPTY:1,
        TASK_RUN_DATA_SELECT_USER:"",
        TASK_RUN_MODE:0,
        TASK_RUN_JUMP_TYPE:0,
        TASK_NODE_FORM:"",
        TASK_NODE_OPERATE:"1",
        MODIFIABLE_NODES:[],
        MUST_MODIFIABLE_NODES:[],
        TASK_TYPE:"",
        TASK_SUB_OPERATE:"",
        SUB_TASK_RUN:0,
        TASK_PTC_DATA:[],
        TASK_CTP_DATA:[],
        PARENT_TASK_RUN:0,
        PARENT_TASK_RUN_COND:"",
        TASK_NODE_TIMEOUT_SETTING:'',
        TASK_NODE_FORM_DATA_POWER:[],
        SERVICE_TASK_RUN_TYPE:'',
        SERVICE_TASK_RUN_METHOD:'',
        operActionData:Object,
        listeners:[]
    }
    return newTaskAttr;
  }